package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**
 * 整合Mybatisplus：
 * 1.导入依赖-mybatisPlus以及mysql
 * 2.进行配置：配置数据源mysql，配置mybatisPlus(包括mapper以及xml)
 */
@EnableFeignClients(basePackages = "com.atguigu.gulimall.product.feign")//开启feign的远程调用
@MapperScan("com.atguigu.gulimall.product.dao")//就是MyBatis对应的mapper接口
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
